This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal


Feb 18, 2014, 11:12 AM
9 Posts

Xpages - CSS on Body fields

  • Category: Domino Designer
  • Platform: Windows
  • Release: 9.0.1
  • Role: Developer
  • Tags:
  • Replies: 0

I have started to convert our existing intranet from html / css to X-pages.
The intranet consists of a number of Notes databases, so I have a lot of existing notes documents that I need to transform.
First problem I encounter is how to style the existing body fields.
All text on the body fields is in Default Sans Serif which is defined as the inbound message default font on the server configuration document.
I have been able to change this to whichever font I wanted via css on the old notes documents.
But on X-pages documents the css does not apply to the plain text in the body fields.
The bold text gets the right font, and so do all the plain text fields.
If I change the font in the body field of one of the existing docs from Default Sans Serif to Arial, that makes the X-page doc look like it should.
But we have a vast number of existing docs, so that will be a huge job - and I thought X-pages were supposed to make life easier!
So far I am only working with very simple css - see below.
I hope someone has a simple solution for this.

 

Body{ font-family : Arial;

font-size : 16px;

color : 000000;

font-style : plain;

font-weight : plain;

text-decoration : none;

text-align : left;

}

 

B{ font-family : Arial;

font-size : 16px;

font-weight : bold;

color : 000000;

text-decoration : none;

text-align : left;

}


This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal